<html>

	<head>
			<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	    <script type="text/javascript" src="../../zxt/zxt.js"></script>
	    <script>
	    	importZXT("../../zxt");
	    </script>
	    <script type="text/javascript" src="../data/datasource.js"></script>		
	</head>

<body>
	<div id="optbar" class="containerBody" style="width:400px"></div>
    <div id="aForm" zxt="zxt.ui.DataForm" zxt.model="tmodel2" zxt.configFunc="configForm"></div>
	<div>
		<a href="../index.html">返回</a>
	</div>
</body>
</html>


<script type="text/javascript"">
	
	function configForm(form){
		form.scrollTo(0);
	}
	$zxt.init();
	
	var bar = new zxt.ui.OptBar();
	var show_form = $zxtUI.aForm;
	bar.addNewButton(show_form);
	bar.addEditButton(show_form);
	bar.addSaveButton(show_form);
	bar.addDeleteButton(show_form);
	bar.addCancelButton(show_form);
	$("#optbar").append(bar.render()); 
	

</script>